package com.yztstudy.Service;

import com.yztstudy.Entity.Desk;

import java.util.List;

/**
 * Desk的业务逻辑层
 */

public interface DeskService {

    public abstract List<Desk> getDesks(String name); //查询餐桌

    public abstract Integer addDesk(Desk desk); //新增餐桌

    public abstract Integer deleteDesk(Integer id); //删除餐桌

    public abstract Integer activeDesk(Integer id); //激活餐桌

    public abstract Integer orderState(Desk desk); //预定

    public abstract Integer cancelState(Desk desk); //取消

    public abstract List<Desk> getFreeDesks(); //查询所有的空闲餐桌

    public abstract Desk getDeskByID(Integer id); //根据ID查询餐桌
}
